Skip to main content

Class: MessageID

Constructors

constructor

new MessageID(streamId, streamPartition, timestamp, sequenceNumber, publisherId, msgChainId)

Parameters

NameType
streamId[StreamID](../API Reference#streamid)
streamPartitionnumber
timestampnumber
sequenceNumbernumber
publisherId[EthereumAddress](../API Reference#ethereumaddress)
msgChainIdstring

Properties

msgChainId

msgChainId: string


publisherId

publisherId: [EthereumAddress](../API Reference#ethereumaddress)


sequenceNumber

sequenceNumber: number


streamId

streamId: [StreamID](../API Reference#streamid)


streamPartition

streamPartition: number


timestamp

timestamp: number

Methods

clone

clone(): MessageID

Returns

MessageID


getStreamPartID

getStreamPartID(): [StreamPartID](../API Reference#streampartid)

Returns

[StreamPartID](../API Reference#streampartid)


serialize

serialize(): string

Returns

string


toArray

toArray(): MessageIDArray

Returns

MessageIDArray


toMessageRef

toMessageRef(): MessageRef

Returns

MessageRef


fromArray

Static fromArray(arr): MessageID

Parameters

NameType
arrMessageIDArray

Returns

MessageID